package com.bstek.pms.tools.model;

/**
 * @Description 数据库连接信息
 * @Author hans
 * @CreateDate 2020-7-5
 */
public class DBProperties {
    private String dbUrl;

    private String dbDriver;

    private String dbUserName;

    private String dbPwd;

    private String dbTabPre;//表名前缀

    public  DBProperties(){

    }

    /**
     *
     * @param dbUrl 数据库连接
     * @param dbDriver 驱动
     * @param dbUserName 用户名
     * @param dbPwd 密码
     */
    public  DBProperties(String dbUrl,String dbDriver,String dbUserName,String dbPwd){
        this.dbUrl=dbUrl;
        this.dbDriver=dbDriver;
        this.dbUserName=dbUserName;
        this.dbPwd=dbPwd;
    }

    public String getDbUrl() {
        return dbUrl;
    }

    public void setDbUrl(String dbUrl) {
        this.dbUrl = dbUrl;
    }

    public String getDbDriver() {
        return dbDriver;
    }

    public void setDbDriver(String dbDriver) {
        this.dbDriver = dbDriver;
    }

    public String getDbUserName() {
        return dbUserName;
    }

    public void setDbUserName(String dbUserName) {
        this.dbUserName = dbUserName;
    }

    public String getDbPwd() {
        return dbPwd;
    }

    public void setDbPwd(String dbPwd) {
        this.dbPwd = dbPwd;
    }

    public String getDbTabPre() {
        return dbTabPre;
    }

    public void setDbTabPre(String dbTabPre) {
        this.dbTabPre = dbTabPre;
    }

    @Override
    public String toString() {
        return "DBProperties{" +
                "dbUrl='" + dbUrl + '\'' +
                ", dbDriver='" + dbDriver + '\'' +
                ", dbUserName='" + dbUserName + '\'' +
                ", dbPwd='" + dbPwd + '\'' +
                ", dbTabPre='" + dbTabPre + '\'' +
                '}';
    }
}
